package com.tanjun.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * redis缓存key
 */
@Getter
@AllArgsConstructor
public enum RedisCacheEnum {

    CAPTCHA("captcha:",5*60L,"验证码"),
    USER_PERMISSION("userPermission:{}",2*60*60L,"用户权限"),
    USER_ROLE("userRole:{}:{}",2*60*60L,"用户角色")
    ;
    /**
     * 缓存key
     */
    private String key;
    /**
     * 过期时间(单位秒)
     */
    private Long expire;
    /**
     * 描述
     */
    private String rmk;



}
